/**
 * This file is a part of qloudgen-sec. 
 * You can redistribute qloudgen-sec and/or modify it under the terms of the Lesser GNU General Public License version 3. 
 * qloudgen-sec is distributed WITHOUT ANY WARRANTY. 
 *
 * See the Lesser GNU General Public License for more details at http://www.gnu.org/licenses/. 
 **/
package org.qloudgen.sec.cas.support.user.userregistry;

import java.util.List;

import org.qloudgen.sec.cas.support.user.services.User;
import org.jasig.cas.authentication.UsernamePasswordCredential;

public interface UserRegistryDao {
    User save(User user);
    
    boolean delete(User user);
    
    List<User> load();

    User findUserById(String id);
    
    User findUserBy(String username,String password);
    
    User findUserByName(String username);
}
